import QtQuick 2.15
import QmlGraphics 1.0

GraphicsRectItem {
    id: item

    property string itemText: ""
    property alias color: name.color

    Text {
        id: name
        anchors.fill: parent
        text: itemText
        antialiasing: true
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
    }
}
